package com.jc.domain.toy;

import com.jc.repository.domain.CanonicalDomain;
import com.jc.repository.dict.toy.ToySetThemeLevel;
import java.io.Serializable;
import java.util.Date;

public class ToySetTheme extends CanonicalDomain<Long> implements Serializable {
    private Long id;

    private String themeNameCh;

    private String themeNameEn;

    private String levelSecParentId;

    private String levelThirdParentId;

    private ToySetThemeLevel level;

    private Date createdAt;

    private Date updatedAt;

    private String remarks;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getThemeNameCh() {
        return themeNameCh;
    }

    public void setThemeNameCh(String themeNameCh) {
        this.themeNameCh = themeNameCh;
    }

    public String getThemeNameEn() {
        return themeNameEn;
    }

    public void setThemeNameEn(String themeNameEn) {
        this.themeNameEn = themeNameEn;
    }

    public String getLevelSecParentId() {
        return levelSecParentId;
    }

    public void setLevelSecParentId(String levelSecParentId) {
        this.levelSecParentId = levelSecParentId;
    }

    public String getLevelThirdParentId() {
        return levelThirdParentId;
    }

    public void setLevelThirdParentId(String levelThirdParentId) {
        this.levelThirdParentId = levelThirdParentId;
    }

    public ToySetThemeLevel getLevel() {
        return level;
    }

    public void setLevel(ToySetThemeLevel level) {
        this.level = level;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ToySetTheme other = (ToySetTheme) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getThemeNameCh() == null ? other.getThemeNameCh() == null : this.getThemeNameCh().equals(other.getThemeNameCh()))
            && (this.getThemeNameEn() == null ? other.getThemeNameEn() == null : this.getThemeNameEn().equals(other.getThemeNameEn()))
            && (this.getLevelSecParentId() == null ? other.getLevelSecParentId() == null : this.getLevelSecParentId().equals(other.getLevelSecParentId()))
            && (this.getLevelThirdParentId() == null ? other.getLevelThirdParentId() == null : this.getLevelThirdParentId().equals(other.getLevelThirdParentId()))
            && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
            && (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()))
            && (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getThemeNameCh() == null) ? 0 : getThemeNameCh().hashCode());
        result = prime * result + ((getThemeNameEn() == null) ? 0 : getThemeNameEn().hashCode());
        result = prime * result + ((getLevelSecParentId() == null) ? 0 : getLevelSecParentId().hashCode());
        result = prime * result + ((getLevelThirdParentId() == null) ? 0 : getLevelThirdParentId().hashCode());
        result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
        result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode());
        return result;
    }

    public ToySetTheme id(Long value) {
        this.id = value;
        return this;
    }

    public ToySetTheme themeNameCh(String value) {
        this.themeNameCh = value;
        return this;
    }

    public ToySetTheme themeNameEn(String value) {
        this.themeNameEn = value;
        return this;
    }

    public ToySetTheme levelSecParentId(String value) {
        this.levelSecParentId = value;
        return this;
    }

    public ToySetTheme levelThirdParentId(String value) {
        this.levelThirdParentId = value;
        return this;
    }

    public ToySetTheme level(ToySetThemeLevel value) {
        this.level = value;
        return this;
    }

    public ToySetTheme createdAt(Date value) {
        this.createdAt = value;
        return this;
    }

    public ToySetTheme updatedAt(Date value) {
        this.updatedAt = value;
        return this;
    }

    public ToySetTheme remarks(String value) {
        this.remarks = value;
        return this;
    }
}